﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using weighing;
using clf.weighing.entity;

namespace weighing
{


    /// <summary>
    /// 称重 订单
    /// </summary>
    public class WeighingOrderVo : BaseVo
    {
        #region Constract
        public WeighingOrder mWeighingOrder;
        public WeighingOrderVo(WeighingOrder weighingOrder)
        {
            mWeighingOrder = weighingOrder;
        }
        #endregion



        public Int64 Id
        {
            get
            {
                return mWeighingOrder.id;
            }
            set
            {
                mWeighingOrder.id = value;
                OnPropertyChanged(this, nameof(Id));
            }
        }

        /// <summary>
        /// 注释:订单号
        /// 可空:YES
        /// </summary>

        public String Number
        {
            get
            {
                return mWeighingOrder.number;
            }
            set
            {
                mWeighingOrder.number = value;
                OnPropertyChanged(this, nameof(Number));
            }
        }

        /// <summary>
        /// 注释:类型(0:其它，1:采购,2:销售）
        /// 可空:YES
        /// 默认值:0
        /// </summary>

        public Int32? Type
        {
            get
            {
                return mWeighingOrder.type;
            }
            set
            {
                mWeighingOrder.type = value;
                OnPropertyChanged(this, nameof(Type));
            }
        }

        /// <summary>
        /// 注释:出入状态 0 作废 1正常
        /// 可空:YES
        /// 默认值:0
        /// </summary>

        public Int32? Status
        {
            get
            {
                return mWeighingOrder.status;
            }
            set
            {
                mWeighingOrder.status = value;
                OnPropertyChanged(this, nameof(Status));
            }
        }


        public Int64? SendCompanyId
        {
            get
            {
                return mWeighingOrder.sendCompanyId;
            }
            set
            {
                mWeighingOrder.sendCompanyId = value;
                OnPropertyChanged(this, nameof(SendCompanyId));
            }
        }


        public String SendCompanyName
        {
            get
            {
                return mWeighingOrder.sendCompanyName;
            }
            set
            {
                mWeighingOrder.sendCompanyName = value;
                OnPropertyChanged(this, nameof(SendCompanyName));
            }
        }


        public Int64? UserId
        {
            get
            {
                return mWeighingOrder.userId;
            }
            set
            {
                mWeighingOrder.userId = value;
                OnPropertyChanged(this, nameof(UserId));
            }
        }

        /// <summary>
        /// 注释:添加员
        /// 可空:YES
        /// </summary>

        public String UserName
        {
            get
            {
                return mWeighingOrder.userName;
            }
            set
            {
                mWeighingOrder.userName = value;
                OnPropertyChanged(this, nameof(UserName));
            }
        }

        /// <summary>
        /// 注释:所属公司
        /// 可空:YES
        /// 默认值:0
        /// </summary>

        public Int64? AffiliatedCompanyId
        {
            get
            {
                return mWeighingOrder.affiliatedCompanyId;
            }
            set
            {
                mWeighingOrder.affiliatedCompanyId = value;
                OnPropertyChanged(this, nameof(AffiliatedCompanyId));
            }
        }


        public Int64? ReceiveCompanyId
        {
            get
            {
                return mWeighingOrder.receiveCompanyId;
            }
            set
            {
                mWeighingOrder.receiveCompanyId = value;
                OnPropertyChanged(this, nameof(ReceiveCompanyId));
            }
        }


        public String ReceiveCompanyName
        {
            get
            {
                return mWeighingOrder.receiveCompanyName;
            }
            set
            {
                mWeighingOrder.receiveCompanyName = value;
                OnPropertyChanged(this, nameof(ReceiveCompanyName));
            }
        }

        /// <summary>
        /// 注释:总量
        /// 可空:YES
        /// 默认值:0.000
        /// </summary>

        public Decimal? Total
        {
            get
            {
                return mWeighingOrder.total;
            }
            set
            {
                mWeighingOrder.total = value;
                OnPropertyChanged(this, nameof(Total));
            }
        }

        /// <summary>
        /// 注释:已消费
        /// 可空:NO
        /// 默认值:0.000
        /// </summary>

        public Decimal Consumption
        {
            get
            {
                return mWeighingOrder.consumption;
            }
            set
            {
                mWeighingOrder.consumption = value;
                OnPropertyChanged(this, nameof(Consumption));
            }
        }

        /// <summary>
        /// 注释:剩余
        /// 可空:YES
        /// 默认值:0.000
        /// </summary>

        public Decimal? Residue
        {
            get
            {
                return mWeighingOrder.residue;
            }
            set
            {
                mWeighingOrder.residue = value;
                OnPropertyChanged(this, nameof(Residue));
            }
        }


        public Int64? MaterialId
        {
            get
            {
                return mWeighingOrder.materialId;
            }
            set
            {
                mWeighingOrder.materialId = value;
                OnPropertyChanged(this, nameof(MaterialId));
            }
        }


        public String MaterialName
        {
            get
            {
                return mWeighingOrder.materialName;
            }
            set
            {
                mWeighingOrder.materialName = value;
                OnPropertyChanged(this, nameof(MaterialName));
            }
        }


        public DateTime? AddTime
        {
            get
            {
                return mWeighingOrder.addTime;
            }
            set
            {
                mWeighingOrder.addTime = value;
                OnPropertyChanged(this, nameof(AddTime));
            }
        }


        public Int32? IsDelete
        {
            get
            {
                return mWeighingOrder.isDelete;
            }
            set
            {
                mWeighingOrder.isDelete = value;
                OnPropertyChanged(this, nameof(IsDelete));
            }
        }


        public DateTime? DeleteTime
        {
            get
            {
                return mWeighingOrder.deleteTime;
            }
            set
            {
                mWeighingOrder.deleteTime = value;
                OnPropertyChanged(this, nameof(DeleteTime));
            }
        }

        /// <summary>
        /// 注释:删除原因
        /// 可空:YES
        /// </summary>

        public String DeleteReason
        {
            get
            {
                return mWeighingOrder.deleteReason;
            }
            set
            {
                mWeighingOrder.deleteReason = value;
                OnPropertyChanged(this, nameof(DeleteReason));
            }
        }


        public Int64? LastUpdateUserId
        {
            get
            {
                return mWeighingOrder.lastUpdateUserId;
            }
            set
            {
                mWeighingOrder.lastUpdateUserId = value;
                OnPropertyChanged(this, nameof(LastUpdateUserId));
            }
        }

        /// <summary>
        /// 注释:最后操作人员
        /// 可空:YES
        /// </summary>

        public String LastUpdateUserName
        {
            get
            {
                return mWeighingOrder.lastUpdateUserName;
            }
            set
            {
                mWeighingOrder.lastUpdateUserName = value;
                OnPropertyChanged(this, nameof(LastUpdateUserName));
            }
        }

        /// <summary>
        /// 注释:最后更新时间
        /// 可空:YES
        /// </summary>

        public DateTime? LastUpdateTime
        {
            get
            {
                return mWeighingOrder.lastUpdateTime;
            }
            set
            {
                mWeighingOrder.lastUpdateTime = value;
                OnPropertyChanged(this, nameof(LastUpdateTime));
            }
        }


        public String Remark
        {
            get
            {
                return mWeighingOrder.remark;
            }
            set
            {
                mWeighingOrder.remark = value;
                OnPropertyChanged(this, nameof(Remark));
            }
        }

    }
}
